package com.woniu.dating.service.impl;

import com.woniu.dating.pojo.DatingInfo;
import com.woniu.dating.mapper.DatingInfoMapper;
import com.woniu.dating.service.IDatingInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniu.dating.vo.DatingLoginVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 玖柒
 * @since 2023-05-20
 */
@Service
public class DatingInfoServiceImpl extends ServiceImpl<DatingInfoMapper, DatingInfo> implements IDatingInfoService {

    @Resource
    private DatingInfoMapper datingInfoMapper;

    /**
     * 查看当前用户，有没有看过该用户
     */
    @Override
    public DatingInfo getDatingInfo(Integer userId, Integer currentUserId) {
        DatingInfo datingInfo = datingInfoMapper.getDatingInfo(userId, currentUserId);
        return datingInfo;
    }
}
